<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>wind management</title>
<link href="/statics/css/admin_style.css" rel="stylesheet" />
<script src="/statics/js/jquery.js"></script>
<script src="/statics/js/supe.js"></script>
</head>
<body>
<div class="wrap">

    <div>  </div>
    <ul class="filetree treeview" id="classtree">
    <?php
        foreach($cartree->maps[0] as $id){
            $name = $cartree->data[$id]['title'];
            $ccid = $cartree->data[$id]['ccid'];
    ?>
        <li id="<?=$ccid;?>" class="hasChildren">
            <span class="folder"><?=$name;?></span>
            <ul>
                <li><span class="placeholder">&nbsp;</span></li>
            </ul>
        </li>
    <?php
        }
    ?>
    </ul>
</div>

</body>
<script language="javascript">

Supe.use('treeView', 'treeViewAsync', function(){
    $('#classtree').treeview({
        url: 'http://autocar.com/admin.php?m=config&c=groups&a=tree2',
        root: '0'
    });
});
</script>
</html>